package com.ruoyi.activity.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 活动管理对象 activity
 * 
 * @author wxl
 * @date 2025-05-24
 */
public class Activity extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 娱乐种类id */
    private Long gameTypeId;

    /** 活动名称 */
    @Excel(name = "活动名称")
    private String name;

    /** 活动图片 */
    @Excel(name = "活动图片")
    private String img;

    /** 状态 */
    @Excel(name = "状态")
    private Long status;

    /** 活动描述 */
    @Excel(name = "活动描述")
    private String descript;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 折扣度 */
    @Excel(name = "折扣度")
    private BigDecimal discountExtent;

    /** 满减数值 */
    @Excel(name = "满减数值")
    private BigDecimal discountNumber;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 创建者 */
    @Excel(name = "创建者")
    private String createUser;

    /** 更新者 */
    @Excel(name = "更新者")
    private String updateUser;

    /** 最少金额 */
    @Excel(name = "最少金额")
    private BigDecimal minAmount;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setGameTypeId(Long gameTypeId) 
    {
        this.gameTypeId = gameTypeId;
    }

    public Long getGameTypeId() 
    {
        return gameTypeId;
    }

    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    public void setImg(String img) 
    {
        this.img = img;
    }

    public String getImg() 
    {
        return img;
    }

    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }

    public void setDescript(String descript) 
    {
        this.descript = descript;
    }

    public String getDescript() 
    {
        return descript;
    }

    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }

    public void setDiscountExtent(BigDecimal discountExtent) 
    {
        this.discountExtent = discountExtent;
    }

    public BigDecimal getDiscountExtent() 
    {
        return discountExtent;
    }

    public void setDiscountNumber(BigDecimal discountNumber) 
    {
        this.discountNumber = discountNumber;
    }

    public BigDecimal getDiscountNumber() 
    {
        return discountNumber;
    }

    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }

    public void setCreateUser(String createUser) 
    {
        this.createUser = createUser;
    }

    public String getCreateUser() 
    {
        return createUser;
    }

    public void setUpdateUser(String updateUser) 
    {
        this.updateUser = updateUser;
    }

    public String getUpdateUser() 
    {
        return updateUser;
    }

    public void setMinAmount(BigDecimal minAmount) 
    {
        this.minAmount = minAmount;
    }

    public BigDecimal getMinAmount() 
    {
        return minAmount;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("gameTypeId", getGameTypeId())
            .append("name", getName())
            .append("img", getImg())
            .append("status", getStatus())
            .append("descript", getDescript())
            .append("startTime", getStartTime())
            .append("discountExtent", getDiscountExtent())
            .append("discountNumber", getDiscountNumber())
            .append("endTime", getEndTime())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("createUser", getCreateUser())
            .append("updateUser", getUpdateUser())
            .append("minAmount", getMinAmount())
            .toString();
    }
}
